package org.istabg.camel;

import org.apache.camel.Exchange;
import org.apache.camel.Processor;

public class Wrapper implements Processor {
	
	@Override
	public void process(Exchange exchange) throws Exception {
		String payload = exchange.getIn().getBody(String.class);
		String envelope = "<Envelope>" + payload + "</Envelope>";
		exchange.getIn().setBody(envelope, String.class);
	}

}
